<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: crypto_engine.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">crypto_engine.h</div>  </div>
</div>
<div class="contents">
<a href="crypto__engine_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00005"></a>00005 <span class="preprocessor">#ifndef __CRYPTO_ENGINE_H__</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __CRYPTO_ENGINE_H__ 1</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;<a class="code" href="embedding__engine_8h.html">embedding_engine.h</a>&quot;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;<a class="code" href="cipher__stream_8h.html">crypto/cipher_stream.h</a>&quot;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="types_8h.html">types.h</a>&quot;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;<a class="code" href="audio__formats_8h.html">audio_formats.h</a>&quot;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="filter_8h.html">crypto/filter.h</a>&quot;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;<a class="code" href="extended__buffer_8h.html">extended_buffer.h</a>&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;<a class="code" href="signal__toolkit_8h.html">signal_toolkit.h</a>&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;set&gt;</span>
<a name="l00016"></a>00016 <span class="keyword">using namespace </span>std;
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 
<a name="l00028"></a><a class="code" href="classCCryptoEngine.html">00028</a> <span class="keyword">class </span><a class="code" href="classCCryptoEngine.html" title="Implementation of a crypto engine.">CCryptoEngine</a>: <span class="keyword">public</span> <a class="code" href="classIEmbeddingEngine.html" title="Embedding engine base class.">IEmbeddingEngine</a> {
<a name="l00029"></a>00029 <span class="keyword">public</span>:
<a name="l00030"></a>00030         <a class="code" href="classCCryptoEngine.html" title="Implementation of a crypto engine.">CCryptoEngine</a>(<a class="code" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> ioStreamInfo);
<a name="l00031"></a>00031         <span class="keyword">virtual</span> ~<a class="code" href="classCCryptoEngine.html" title="Implementation of a crypto engine.">CCryptoEngine</a>();
<a name="l00032"></a>00032 
<a name="l00033"></a>00033         <span class="comment">// samples of types s8, u8, s16 and u16 are supported by the lsb embedding</span>
<a name="l00034"></a>00034         <span class="comment">// engine</span>
<a name="l00035"></a>00035 
<a name="l00036"></a><a class="code" href="classCCryptoEngine.html#afa42453df8be9a392303d70b4fdef7ce">00036</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span> embedIntoSamples(int8_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount,
<a name="l00037"></a>00037                         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak) {
<a name="l00038"></a>00038                 <span class="keywordflow">return</span> -1;
<a name="l00039"></a>00039         }
<a name="l00040"></a><a class="code" href="classCCryptoEngine.html#a56c0cce3de7d609dc7b9d02aedaf269c">00040</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span> embedIntoSamples(uint8_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount,
<a name="l00041"></a>00041                         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak) {
<a name="l00042"></a>00042                 <span class="keywordflow">return</span> -1;
<a name="l00043"></a>00043         }
<a name="l00044"></a><a class="code" href="classCCryptoEngine.html#a4d593436533e1181ff78aee0e5a180cf">00044</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span> embedIntoSamples(int16_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount,
<a name="l00045"></a>00045                         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak) {
<a name="l00046"></a>00046                 <span class="keywordflow">return</span> -1;
<a name="l00047"></a>00047         }
<a name="l00048"></a><a class="code" href="classCCryptoEngine.html#a77d0b14647029fe24da5cf9a98722420">00048</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span> embedIntoSamples(uint16_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount,
<a name="l00049"></a>00049                         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak) {
<a name="l00050"></a>00050                 <span class="keywordflow">return</span> -1;
<a name="l00051"></a>00051         }
<a name="l00052"></a>00052 
<a name="l00066"></a>00066         <span class="keyword">virtual</span> <span class="keywordtype">int</span> embedIntoSamples(<span class="keywordtype">double</span>* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount,
<a name="l00067"></a>00067                         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak);
<a name="l00068"></a>00068 
<a name="l00069"></a><a class="code" href="classCCryptoEngine.html#a987c8e885306c46278154850f9d08329">00069</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span> extractFromSamples(int8_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount,
<a name="l00070"></a>00070                         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer) {
<a name="l00071"></a>00071                 <span class="keywordflow">return</span> -1;
<a name="l00072"></a>00072         }
<a name="l00073"></a><a class="code" href="classCCryptoEngine.html#aedf491be2045c9e0eb328a7601aeb2b8">00073</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span> extractFromSamples(uint8_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount,
<a name="l00074"></a>00074                         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer) {
<a name="l00075"></a>00075                 <span class="keywordflow">return</span> -1;
<a name="l00076"></a>00076         }
<a name="l00077"></a><a class="code" href="classCCryptoEngine.html#af2c1e3584afe76a542d710ced83d429d">00077</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span> extractFromSamples(int16_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount,
<a name="l00078"></a>00078                         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer) {
<a name="l00079"></a>00079                 <span class="keywordflow">return</span> -1;
<a name="l00080"></a>00080         }
<a name="l00081"></a><a class="code" href="classCCryptoEngine.html#ac5923a7e5647d09aead6e2062fdca5d9">00081</a>         <span class="keyword">virtual</span> <span class="keywordtype">int</span> extractFromSamples(uint16_t* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount,
<a name="l00082"></a>00082                         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer) {
<a name="l00083"></a>00083                 <span class="keywordflow">return</span> -1;
<a name="l00084"></a>00084         }
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 
<a name="l00099"></a>00099         <span class="keyword">virtual</span> <span class="keywordtype">int</span> extractFromSamples(<span class="keywordtype">double</span>* pSamples, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount,
<a name="l00100"></a>00100                         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pLeak, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pInBuffer);
<a name="l00101"></a>00101 
<a name="l00102"></a>00102         <span class="comment">/*</span>
<a name="l00103"></a>00103 <span class="comment">         * initiate a controlled shutdown</span>
<a name="l00104"></a>00104 <span class="comment">         * @note called by the engine factory on destroyCallHandle()</span>
<a name="l00105"></a>00105 <span class="comment">         */</span>
<a name="l00106"></a>00106         <span class="keyword">virtual</span> <span class="keywordtype">void</span> shutdown();
<a name="l00107"></a>00107 
<a name="l00115"></a>00115         <span class="keyword">virtual</span> <span class="keywordtype">int</span> changeSettings();
<a name="l00116"></a>00116 
<a name="l00127"></a><a class="code" href="classCCryptoEngine.html#abe276f3773c39536ba0ce3c3e3185268">00127</a>         <span class="keyword">inline</span> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCCryptoEngine.html#abe276f3773c39536ba0ce3c3e3185268" title="determine number of processible samples">getNumRequiredSamples</a>() {
<a name="l00128"></a>00128                 <span class="keywordflow">return</span> sNumRequiredSamples;
<a name="l00129"></a>00129         }
<a name="l00130"></a>00130 
<a name="l00131"></a>00131 
<a name="l00132"></a><a class="code" href="classCCryptoEngine.html#a5fe78aa78cd14bbf52e8c897e128af49">00132</a>         <span class="keyword">inline</span> <span class="keyword">virtual</span> std::string <a class="code" href="classCCryptoEngine.html#a5fe78aa78cd14bbf52e8c897e128af49" title="get the abbreviation for the properties reader">getIniSectionName</a>()<span class="keyword"> const </span>{
<a name="l00133"></a>00133                 <span class="keywordflow">return</span> sIniSectionName;
<a name="l00134"></a>00134         }
<a name="l00135"></a>00135 
<a name="l00136"></a><a class="code" href="classCCryptoEngine.html#a0b8e86c1fa977f571de690f268fa4087">00136</a>         <span class="keyword">inline</span> <span class="keyword">virtual</span> <a class="code" href="namespaceNAudioFormats.html#a0f5b4d2b68d4ba2b34bac333d4f5f808">NAudioFormats::ESamplesFormat</a> <a class="code" href="classCCryptoEngine.html#a0b8e86c1fa977f571de690f268fa4087" title="determine whether samples should be converted to double before handed over to an embedding engine...">getSamplesFormat</a>() {
<a name="l00137"></a>00137                 <span class="keywordflow">return</span> <a class="code" href="namespaceNAudioFormats.html#a0f5b4d2b68d4ba2b34bac333d4f5f808a0cdbad3db788f96b40c4681c052bd6b7">NAudioFormats::MODIFIED</a>;
<a name="l00138"></a>00138         }
<a name="l00139"></a>00139 
<a name="l00140"></a>00140 
<a name="l00141"></a>00141 
<a name="l00154"></a>00154         <span class="keyword">virtual</span> <span class="keywordtype">int</span> encrypt(<span class="keywordtype">double</span> *data, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount) = 0;
<a name="l00155"></a>00155 
<a name="l00156"></a>00156 
<a name="l00157"></a>00157 
<a name="l00169"></a>00169         <span class="keyword">virtual</span> <span class="keywordtype">int</span> decrypt(<span class="keywordtype">double</span> *data, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pCount) = 0;
<a name="l00170"></a>00170 
<a name="l00171"></a>00171 
<a name="l00172"></a>00172 
<a name="l00173"></a>00173 
<a name="l00182"></a>00182         <span class="keyword">virtual</span> <span class="keywordtype">int</span> cycleCipherStream();
<a name="l00183"></a>00183 
<a name="l00184"></a>00184 
<a name="l00192"></a>00192         <span class="keyword">static</span> <span class="keywordtype">char</span> hexValue(<span class="keywordtype">char</span> pChar);
<a name="l00193"></a>00193 
<a name="l00194"></a>00194 
<a name="l00202"></a>00202         <span class="keyword">static</span> <span class="keywordtype">void</span> readHexString(<span class="keyword">const</span> std::string &amp;pString,std::string &amp;pHexString);
<a name="l00203"></a>00203 
<a name="l00204"></a>00204 
<a name="l00205"></a>00205 
<a name="l00206"></a>00206 <span class="keyword">protected</span>:
<a name="l00207"></a><a class="code" href="classCCryptoEngine.html#aa9030f87332f97cab3ee157341badbd9">00207</a>         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classCCryptoEngine.html#aa9030f87332f97cab3ee157341badbd9" title="number of processible samples">sNumRequiredSamples</a>;   
<a name="l00208"></a><a class="code" href="classCCryptoEngine.html#a2764aa8f63c1f6d7117564a20dc80885">00208</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCCryptoEngine.html#a2764aa8f63c1f6d7117564a20dc80885" title="the configured Fourier sample size N">mFftFrameSize</a>;     
<a name="l00209"></a><a class="code" href="classCCryptoEngine.html#a31c60ccedcdd2d753fe231d1b6c1faaa">00209</a>         <span class="keywordtype">int</span> <a class="code" href="classCCryptoEngine.html#a31c60ccedcdd2d753fe231d1b6c1faaa" title="debug on?">mDebug</a>;     
<a name="l00210"></a>00210 
<a name="l00211"></a>00211         <span class="comment">//Ciphers</span>
<a name="l00212"></a><a class="code" href="classCCryptoEngine.html#aed48871dfabffe74b361f6f59b280b3d">00212</a>         std::string mCipherStreamMasterAlgorithm, <a class="code" href="classCCryptoEngine.html#aed48871dfabffe74b361f6f59b280b3d">mCipherStreamSessionAlgorithm</a>, mCipherStreamIV;
<a name="l00213"></a><a class="code" href="classCCryptoEngine.html#a0a0af66405290f7411e8f0df0151540d">00213</a>         <a class="code" href="classCCipherStream.html">CCipherStream</a> *<a class="code" href="classCCryptoEngine.html#a0a0af66405290f7411e8f0df0151540d">mMasterCipherStream</a>;
<a name="l00214"></a><a class="code" href="classCCryptoEngine.html#a57e66187e35cfb9f881d53f112ff32cb">00214</a>         <a class="code" href="classCCipherStream.html">CCipherStream</a> *<a class="code" href="classCCryptoEngine.html#a57e66187e35cfb9f881d53f112ff32cb">mSessionCipherStream</a>;
<a name="l00215"></a>00215 
<a name="l00216"></a>00216         <span class="comment">//Synchronization</span>
<a name="l00217"></a>00217 
<a name="l00218"></a><a class="code" href="classCCryptoEngine.html#a0254b83ef71f47ecc76d8dc970f765ca">00218</a>         <span class="keywordtype">bool</span> <a class="code" href="classCCryptoEngine.html#a0254b83ef71f47ecc76d8dc970f765ca" title="indicates if the first synchronization frame is completed">mInitSyncComplete</a>; 
<a name="l00219"></a><a class="code" href="classCCryptoEngine.html#a46e645375b49245af0d3af4c0c48f5e8">00219</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mSyncSignalFrequencies[12][6]; 
<a name="l00220"></a><a class="code" href="classCCryptoEngine.html#ae5881bffb16d6b9061491f106145118e">00220</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCCryptoEngine.html#ae5881bffb16d6b9061491f106145118e" title="the current synchronization ID number (0-11)">mCurrentSyncSignalIndex</a>;  
<a name="l00221"></a><a class="code" href="classCCryptoEngine.html#af2de686c8b92194941e3477292b8e160">00221</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCCryptoEngine.html#af2de686c8b92194941e3477292b8e160" title="Offset between first sync frame and encrypted data.">mSamplesOffset</a>;  
<a name="l00222"></a><a class="code" href="classCCryptoEngine.html#a7859ef447331b267e0f3ff4b7c6b9b39">00222</a>         <span class="keywordtype">double</span> <a class="code" href="classCCryptoEngine.html#a7859ef447331b267e0f3ff4b7c6b9b39" title="the sample number of the first sync frame">mInitialSyncOffset</a>;      
<a name="l00223"></a><a class="code" href="classCCryptoEngine.html#a9893a20e194970e35200d67e3fa0708f">00223</a>         <span class="keywordtype">double</span>* <a class="code" href="classCCryptoEngine.html#a9893a20e194970e35200d67e3fa0708f" title="Initial Synchronization Signal.">mSyncInitial</a>;   
<a name="l00224"></a>00224 
<a name="l00225"></a>00225 
<a name="l00229"></a><a class="code" href="classCCryptoEngine.html#a700b8779418a1d73b86a0103de1166b7">00229</a>         <a class="code" href="structNAudioFormats_1_1SStreamInfo.html">NAudioFormats::SStreamInfo</a> <a class="code" href="classCCryptoEngine.html#a700b8779418a1d73b86a0103de1166b7">mIoStreamInfo</a>;
<a name="l00230"></a>00230 
<a name="l00231"></a>00231         <span class="comment">/*</span>
<a name="l00232"></a>00232 <span class="comment">         * Audiofilter</span>
<a name="l00233"></a>00233 <span class="comment">         */</span>
<a name="l00234"></a><a class="code" href="classCCryptoEngine.html#a8358d303f4dbfc5416effc41c689167b">00234</a>         <a class="code" href="classCFilter.html">CFilter</a> *<a class="code" href="classCCryptoEngine.html#a8358d303f4dbfc5416effc41c689167b">mFilter</a>;
<a name="l00235"></a>00235 
<a name="l00236"></a>00236 
<a name="l00237"></a>00237 
<a name="l00241"></a>00241         <span class="keywordtype">void</span> calculateSyncSignalFrequencies();
<a name="l00242"></a>00242 
<a name="l00243"></a>00243 
<a name="l00252"></a>00252         <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> getSamplesNeeded();
<a name="l00253"></a>00253 
<a name="l00254"></a>00254 
<a name="l00259"></a>00259         <span class="keyword">virtual</span> <span class="keywordtype">void</span> initCrypto();
<a name="l00260"></a>00260 
<a name="l00261"></a>00261 
<a name="l00262"></a>00262 
<a name="l00263"></a>00263 
<a name="l00264"></a>00264 
<a name="l00265"></a>00265 <span class="keyword">private</span>:
<a name="l00266"></a>00266         <a class="code" href="classCCryptoEngine.html" title="Implementation of a crypto engine.">CCryptoEngine</a>(<span class="keyword">const</span> <a class="code" href="classCCryptoEngine.html" title="Implementation of a crypto engine.">CCryptoEngine</a>&amp;);
<a name="l00267"></a>00267         <a class="code" href="classCCryptoEngine.html" title="Implementation of a crypto engine.">CCryptoEngine</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classCCryptoEngine.html" title="Implementation of a crypto engine.">CCryptoEngine</a>&amp;);
<a name="l00268"></a>00268 
<a name="l00269"></a><a class="code" href="classCCryptoEngine.html#a771dc5672c3690791e03d9492f4f2400">00269</a>         <span class="keyword">static</span> <span class="keyword">const</span> std::string <a class="code" href="classCCryptoEngine.html#a771dc5672c3690791e03d9492f4f2400">sIniSectionName</a>;
<a name="l00270"></a><a class="code" href="classCCryptoEngine.html#a383b8a7a62188e6c1a92703272b1512e">00270</a>         <span class="keywordtype">double</span> <a class="code" href="classCCryptoEngine.html#a383b8a7a62188e6c1a92703272b1512e" title="sample count since beginning">mGlobalSampleCount</a>;      
<a name="l00271"></a><a class="code" href="classCCryptoEngine.html#a709ac55a851ad47376abe96f89784b38">00271</a>         <a class="code" href="classCExtendedBuffer.html" title="Dynamic push and pop Buffer for audio samples.">CExtendedBuffer</a> <a class="code" href="classCCryptoEngine.html#a709ac55a851ad47376abe96f89784b38" title="unprocessed data which should go to OutputBuffer">mInputBuffer</a>;   
<a name="l00272"></a><a class="code" href="classCCryptoEngine.html#a3fcf88d4c5662368b5c4aeea0b0fbd2b">00272</a>         <a class="code" href="classCExtendedBuffer.html" title="Dynamic push and pop Buffer for audio samples.">CExtendedBuffer</a> <a class="code" href="classCCryptoEngine.html#a3fcf88d4c5662368b5c4aeea0b0fbd2b" title="data which should be put on the line">mOutputBuffer</a>;  
<a name="l00273"></a><a class="code" href="classCCryptoEngine.html#acc4a9dae2d5d3b3ba35896f927dac46e">00273</a>         <a class="code" href="classCExtendedBuffer.html" title="Dynamic push and pop Buffer for audio samples.">CExtendedBuffer</a> <a class="code" href="classCCryptoEngine.html#acc4a9dae2d5d3b3ba35896f927dac46e" title="needed to search the sync signal">mAnalysisBuffer</a>;        
<a name="l00274"></a><a class="code" href="classCCryptoEngine.html#a5234a3faf5a84e56ac8cc18218240e28">00274</a>         <a class="code" href="classCExtendedBuffer.html" title="Dynamic push and pop Buffer for audio samples.">CExtendedBuffer</a> <a class="code" href="classCCryptoEngine.html#a5234a3faf5a84e56ac8cc18218240e28" title="syncronization signal which should be written">mSyncSignalBuffer</a>;      
<a name="l00275"></a><a class="code" href="classCCryptoEngine.html#ac6b37184be270d63a20b5ba2f5fd9436">00275</a>         <a class="code" href="classCSignalToolkit.html" title="Analyzes samples for patterns.">CSignalToolkit</a> <a class="code" href="classCCryptoEngine.html#ac6b37184be270d63a20b5ba2f5fd9436" title="different useful tools for signal manipulation">mSignalToolkit</a>;  
<a name="l00276"></a>00276 
<a name="l00277"></a>00277         <span class="keywordtype">double</span> getAmplitudeOfComplex(<span class="keywordtype">double</span>* pComplex);
<a name="l00278"></a>00278 
<a name="l00287"></a>00287         <span class="keywordtype">double</span> modulus(<span class="keywordtype">double</span> a, <span class="keywordtype">double</span> b);
<a name="l00288"></a>00288 };
<a name="l00289"></a>00289 
<a name="l00290"></a>00290 <span class="preprocessor">#endif // __CRYPTO_ENGINE_H__</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:39 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
